xiaomiList = {
    "message": {
        "total": 2058,
        "pagenum": "1",
        "goods": [
            {
                "goods_id": 57000,
                "cat_id": 998,
                "goods_name": "红米k40游戏增强版 天玑1200处理器 67W闪充",
                "goods_price": 2199,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/k40.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/k40.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            {
                "goods_id": 57001,
                "cat_id": 998,
                "goods_name": "红米9A 1300W像素 超长续航",
                "goods_price": 998,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/hm9A.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/hm9A.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            {
                "goods_id": 57002,
                "cat_id": 998,
                "goods_name": "红米Note11pro 三星AMOLED高刷屏 1亿像素",
                "goods_price": 1399,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/hm9A.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/hmnote11pro.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            {
                "goods_id": 57003,
                "cat_id": 998,
                "goods_name": "小米11pro 三星AMOLED高刷屏 6.73英寸2K手机",
                "goods_price": 4399,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/hm9A.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/xm11pro.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            {
                "goods_id": 57004,
                "cat_id": 998,
                "goods_name": "小米12 三星AMOLED高刷屏 全新骁龙8",
                "goods_price": 3999,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/hm9A.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/xm12.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            {
                "goods_id": 57005,
                "cat_id": 998,
                "goods_name": "小米12Pro 三星AMOLED高刷屏 全新骁龙8 万物追焦",
                "goods_price": 4699,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/hm9A.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/xm12pro.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            {
                "goods_id": 57006,
                "cat_id": 998,
                "goods_name": "小米mix4  全面屏手机 骁龙888处理器",
                "goods_price": 4599,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/hm9A.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/xmmix4.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            
            
        ]
    },
    "meta": {
        "msg": "获取成功",
        "status": 200
    }

}


huaweiList = {
    "message": {
        "total": 2058,
        "pagenum": "1",
        "goods": [
            {
                "goods_id": 56000,
                "cat_id": 998,
                "goods_name": "华为Mate 40Pro 全网通4G手机 麒麟9000处理器",
                "goods_price": 5999,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/k40.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/mate40pro.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            
        ]
    },
    "meta": {
        "msg": "获取成功",
        "status": 200
    }

}
rongyaoList = {
    "message": {
        "total": 2058,
        "pagenum": "1",
        "goods": [
            {
                "goods_id": 55000,
                "cat_id": 998,
                "goods_name": "荣耀magic3 至臻版 多主摄计算摄影 骁龙888plus处理器",
                "goods_price": 6999,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/k40.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/magic3.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            
        ]
    },
    "meta": {
        "msg": "获取成功",
        "status": 200
    }

}
appleList = {
    "message": {
        "total": 2058,
        "pagenum": "1",
        "goods": [
            {
                "goods_id": 55000,
                "cat_id": 998,
                "goods_name": "Apple iPhone13 ",
                "goods_price": 5999,
                "goods_number": 100,
                "goods_weight": 100,
                "goods_big_logo": "http://localhost:8080/imggoodslist/k40.jpg",
                "goods_small_logo": "http://localhost:8080/imggoodslist/iPhone13.jpg",
                "add_time": 1516662792,
                "upd_time": 1516662792,
                "hot_mumber": 0,
                "is_promote": false,
                "cat_one_id": 962,
                "cat_two_id": 981,
                "cat_three_id": 998
            },
            
        ]
    },
    "meta": {
        "msg": "获取成功",
        "status": 200
    }

}


exports.goodslist = (req, res) => {
    const str = JSON.parse(req.query.queryObj) 
    if(str.cid==5){
        res.send(xiaomiList)
    }
    if(str.cid==6){
        res.send(huaweiList)
    }
    if(str.cid==7){
        res.send(rongyaoList)
    }
    if(str.cid==8){
        res.send(appleList)
    }
    
     /* console.log(str); */ 
     console.log(str.cid)//拿到cid
}